package InnerClass.InnerClassDemo004;

/**
 * ClassName:Outer
 * Package:InnerClass.InnerClassDemo004
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/26-1:10
 * @Version:v1.0
 */
public class Outer {
    private int a = 10;

    class Inner {
        private int a = 20;

        public void show() {
            int a = 30;
            //Outer.this.a 获取了外部类对象的地址值
            System.out.println(a);//30
            System.out.println(this.a);//20
            System.out.println(Outer.this.a);//10
            System.out.println("==");
            System.out.println(a);
        }
    }
}
